﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity
{
    public class Base
    {

        public Base()
        {
            this.ID = Guid.NewGuid();
            this.Islock = false;
            this.IsDelete = false;
            this.CreatTime = DateTime.Now;
        }

        /// <summary>
        /// ID
        /// </summary>
        [Column("P01")]
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid ID { get; set; }

        [Column("P02")]
        /// <summary>
        /// 是否被锁定
        /// </summary>
        public Boolean Islock { get; set; }

        [Column("P03")]
        /// <summary>
        /// 是否被删除
        /// </summary>
        public Boolean IsDelete { get; set; }


        [Column("P04")]
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatTime { get; set; }
    }
}
